package com.example.prjbackend.service;

import com.example.prjbackend.domain.Bumeng;
import com.example.prjbackend.domain.Category;
import com.example.prjbackend.mapper.BumengMapper;
import com.example.prjbackend.mapper.CategoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class BumengService
{
    @Autowired
    BumengMapper bumengMapper;
    public int add(Bumeng bumeng) {
        return bumengMapper.insert(bumeng);
    }

    public List<Bumeng> list(Bumeng bumeng)
    {
        return bumengMapper.list(bumeng);
    }
    public int edit(Bumeng bumeng) {
        return bumengMapper.edit(bumeng);
    }
    public int delete(Long[] ids) {
        return bumengMapper.delete(ids);
    }

}
